Optimal. Leaf size=121 \[ -2 i a^2 \text {ArcCos}(a x)^3+\frac {2 a \sqrt {1-a^2 x^2} \text {ArcCos}(a x)^3}{x}-\frac {\text {ArcCos}(a x)^4}{2 x^2}+6 a^2 \text {ArcCos}(a x)^2 \log \left (1+e^{2 i \text {ArcCos}(a x)}\right )-6 i a^2 \text {ArcCos}(a x) \text {PolyLog}\left (2,-e^{2 i \text {ArcCos}(a x)}\right )+3 a^2 \text {PolyLog}\left (3,-e^{2 i \text {ArcCos}(a x)}\right ) \]
[Out]
________________________________________________________________________________________
Rubi [A]
time = 0.14, antiderivative size = 121, normalized size of antiderivative = 1.00, number of steps
used = 8, number of rules used = 8, integrand size = 10, \(\frac {\text {number of rules}}{\text {integrand size}}\) = 0.800, Rules used = {4724, 4772,
4722, 3800, 2221, 2611, 2320, 6724} \begin {gather*} -6 i a^2 \text {ArcCos}(a x) \text {Li}_2\left (-e^{2 i \text {ArcCos}(a x)}\right )+3 a^2 \text {Li}_3\left (-e^{2 i \text {ArcCos}(a x)}\right )+\frac {2 a \sqrt {1-a^2 x^2} \text {ArcCos}(a x)^3}{x}-2 i a^2 \text {ArcCos}(a x)^3+6 a^2 \text {ArcCos}(a x)^2 \log \left (1+e^{2 i \text {ArcCos}(a x)}\right )-\frac {\text {ArcCos}(a x)^4}{2 x^2} \end {gather*}
Antiderivative was successfully verified.
[In]
[Out]
Rule 2221
Rule 2320
Rule 2611
Rule 3800
Rule 4722
Rule 4724
Rule 4772
Rule 6724
Rubi steps
\begin {align*} \int \frac {\cos ^{-1}(a x)^4}{x^3} \, dx &=-\frac {\cos ^{-1}(a x)^4}{2 x^2}-(2 a) \int \frac {\cos ^{-1}(a x)^3}{x^2 \sqrt {1-a^2 x^2}} \, dx\\ &=\frac {2 a \sqrt {1-a^2 x^2} \cos ^{-1}(a x)^3}{x}-\frac {\cos ^{-1}(a x)^4}{2 x^2}+\left (6 a^2\right ) \int \frac {\cos ^{-1}(a x)^2}{x} \, dx\\ &=\frac {2 a \sqrt {1-a^2 x^2} \cos ^{-1}(a x)^3}{x}-\frac {\cos ^{-1}(a x)^4}{2 x^2}-\left (6 a^2\right ) \text {Subst}\left (\int x^2 \tan (x) \, dx,x,\cos ^{-1}(a x)\right )\\ &=-2 i a^2 \cos ^{-1}(a x)^3+\frac {2 a \sqrt {1-a^2 x^2} \cos ^{-1}(a x)^3}{x}-\frac {\cos ^{-1}(a x)^4}{2 x^2}+\left (12 i a^2\right ) \text {Subst}\left (\int \frac {e^{2 i x} x^2}{1+e^{2 i x}} \, dx,x,\cos ^{-1}(a x)\right )\\ &=-2 i a^2 \cos ^{-1}(a x)^3+\frac {2 a \sqrt {1-a^2 x^2} \cos ^{-1}(a x)^3}{x}-\frac {\cos ^{-1}(a x)^4}{2 x^2}+6 a^2 \cos ^{-1}(a x)^2 \log \left (1+e^{2 i \cos ^{-1}(a x)}\right )-\left (12 a^2\right ) \text {Subst}\left (\int x \log \left (1+e^{2 i x}\right ) \, dx,x,\cos ^{-1}(a x)\right )\\ &=-2 i a^2 \cos ^{-1}(a x)^3+\frac {2 a \sqrt {1-a^2 x^2} \cos ^{-1}(a x)^3}{x}-\frac {\cos ^{-1}(a x)^4}{2 x^2}+6 a^2 \cos ^{-1}(a x)^2 \log \left (1+e^{2 i \cos ^{-1}(a x)}\right )-6 i a^2 \cos ^{-1}(a x) \text {Li}_2\left (-e^{2 i \cos ^{-1}(a x)}\right )+\left (6 i a^2\right ) \text {Subst}\left (\int \text {Li}_2\left (-e^{2 i x}\right ) \, dx,x,\cos ^{-1}(a x)\right )\\ &=-2 i a^2 \cos ^{-1}(a x)^3+\frac {2 a \sqrt {1-a^2 x^2} \cos ^{-1}(a x)^3}{x}-\frac {\cos ^{-1}(a x)^4}{2 x^2}+6 a^2 \cos ^{-1}(a x)^2 \log \left (1+e^{2 i \cos ^{-1}(a x)}\right )-6 i a^2 \cos ^{-1}(a x) \text {Li}_2\left (-e^{2 i \cos ^{-1}(a x)}\right )+\left (3 a^2\right ) \text {Subst}\left (\int \frac {\text {Li}_2(-x)}{x} \, dx,x,e^{2 i \cos ^{-1}(a x)}\right )\\ &=-2 i a^2 \cos ^{-1}(a x)^3+\frac {2 a \sqrt {1-a^2 x^2} \cos ^{-1}(a x)^3}{x}-\frac {\cos ^{-1}(a x)^4}{2 x^2}+6 a^2 \cos ^{-1}(a x)^2 \log \left (1+e^{2 i \cos ^{-1}(a x)}\right )-6 i a^2 \cos ^{-1}(a x) \text {Li}_2\left (-e^{2 i \cos ^{-1}(a x)}\right )+3 a^2 \text {Li}_3\left (-e^{2 i \cos ^{-1}(a x)}\right )\\ \end {align*}
________________________________________________________________________________________
Mathematica [A]
time = 0.27, size = 115, normalized size = 0.95 \begin {gather*} -\frac {\text {ArcCos}(a x)^4}{2 x^2}-a^2 \left (-2 \text {ArcCos}(a x)^2 \left (-i \text {ArcCos}(a x)+\frac {\sqrt {1-a^2 x^2} \text {ArcCos}(a x)}{a x}+3 \log \left (1+e^{2 i \text {ArcCos}(a x)}\right )\right )+6 i \text {ArcCos}(a x) \text {PolyLog}\left (2,-e^{2 i \text {ArcCos}(a x)}\right )-3 \text {PolyLog}\left (3,-e^{2 i \text {ArcCos}(a x)}\right )\right ) \end {gather*}
Antiderivative was successfully verified.
[In]
[Out]
________________________________________________________________________________________
Maple [A]
time = 0.36, size = 150, normalized size = 1.24
method | result | size |
derivativedivides | \(a^{2} \left (-\frac {\arccos \left (a x \right )^{3} \left (-4 i a^{2} x^{2}-4 a x \sqrt {-a^{2} x^{2}+1}+\arccos \left (a x \right )\right )}{2 a^{2} x^{2}}-4 i \arccos \left (a x \right )^{3}+6 \arccos \left (a x \right )^{2} \ln \left (1+\left (a x +i \sqrt {-a^{2} x^{2}+1}\right )^{2}\right )-6 i \arccos \left (a x \right ) \polylog \left (2, -\left (a x +i \sqrt {-a^{2} x^{2}+1}\right )^{2}\right )+3 \polylog \left (3, -\left (a x +i \sqrt {-a^{2} x^{2}+1}\right )^{2}\right )\right )\) | \(150\) |
default | \(a^{2} \left (-\frac {\arccos \left (a x \right )^{3} \left (-4 i a^{2} x^{2}-4 a x \sqrt {-a^{2} x^{2}+1}+\arccos \left (a x \right )\right )}{2 a^{2} x^{2}}-4 i \arccos \left (a x \right )^{3}+6 \arccos \left (a x \right )^{2} \ln \left (1+\left (a x +i \sqrt {-a^{2} x^{2}+1}\right )^{2}\right )-6 i \arccos \left (a x \right ) \polylog \left (2, -\left (a x +i \sqrt {-a^{2} x^{2}+1}\right )^{2}\right )+3 \polylog \left (3, -\left (a x +i \sqrt {-a^{2} x^{2}+1}\right )^{2}\right )\right )\) | \(150\) |
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Maxima [F]
time = 0.00, size = 0, normalized size = 0.00 \begin {gather*} \text {Failed to integrate} \end {gather*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Fricas [F]
time = 0.00, size = 0, normalized size = 0.00 \begin {gather*} \text {could not integrate} \end {gather*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Sympy [F]
time = 0.00, size = 0, normalized size = 0.00 \begin {gather*} \int \frac {\operatorname {acos}^{4}{\left (a x \right )}}{x^{3}}\, dx \end {gather*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Giac [F]
time = 0.00, size = 0, normalized size = 0.00 \begin {gather*} \text {could not integrate} \end {gather*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Mupad [F]
time = 0.00, size = -1, normalized size = -0.01 \begin {gather*} \int \frac {{\mathrm {acos}\left (a\,x\right )}^4}{x^3} \,d x \end {gather*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________